package com.ymttest.common.enums;

/**
 * 账户操作动作枚举
 */
public enum AccountOperateTypeEnum {
	/**
	 * 进账
	 */
	Fundin(1),

	/**
	 * 冻结
	 */
	Freeze(3),
	/**
	 * 解冻
	 */
	Unfreeze(4),
	/**
	 * 出账
	 */
	Fundout(2);

	private int intValue;
	private static java.util.HashMap<Integer, AccountOperateTypeEnum> mappings;

	private synchronized static java.util.HashMap<Integer, AccountOperateTypeEnum> getMappings() {
		if (mappings == null) {
			mappings = new java.util.HashMap<Integer, AccountOperateTypeEnum>();
		}
		return mappings;
	}

	private AccountOperateTypeEnum(int value) {
		intValue = value;
		AccountOperateTypeEnum.getMappings().put(value, this);
	}

	public int getValue() {
		return intValue;
	}

	public static AccountOperateTypeEnum forValue(int value) {
		return getMappings().get(value);
	}
}